<?php

namespace app\wechat\controller\template;

use app\wechat\controller\swoole\Client;

class Send
{
    public function test($msg)
    {
        $client = new Client();
        $client->connect();
        $client->send($msg);
        $data = $client->recv();
        $client->close();
        return json($data);
    }
}

